
export const formRequire = [{required: true, message: '必填'}]

export const formMobile = formRequire.concat([
    { pattern: /^[1]([3-9])[0-9]{9}$/, message: '请输入正确的手机号' }
])

export const formMax = max => [{max, message: `最多为${max}字`}]